home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / nano / gentoo.nanorc < prev    next >
Encoding:
Text File  |  2010-04-15  |  3.1 KB  |  56 lines

  1. ## Here is an example for Gentoo ebuilds/eclasses
  2. ##
  3. syntax "ebuild" "\.e(build|class)$"
  4. ## All the standard portage functions
  5. color brightgreen "^src_(unpack|prepare|configure|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
  6. ## Highlight bash related syntax
  7. color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>"
  8. color green "\<(declare|eval|exec|let)\>"
  9. color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
  10. color green "-[edfgruwxL]\>"
  11. color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
  12. ## Highlight variables ... official portage ones in red, all others in bright red
  13. color brightred "\$\{?[a-zA-Z_0-9]+\}?"
  14. color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|(P|R)?DEPEND|PROVIDE|PROPERTIES|RESTRICT|USERLAND)\>"
  15. color red "\<(S|D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|ROOT|WORKDIR)\>" "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
  16. color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>" "\<WANT_AUTO(CONF|MAKE)\>" "\<AT_M4DIR\>"
  17. ## Highlight portage commands
  18. color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
  19. color brightblue "\<e(begin|end|conf|install|make|qmake[34]|ant|(qa)?warn|infon?|error|log|patch|new(group|user))\>"
  20. color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make))\>"
  21. color brightblue "\<built_with_use\>" "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>"
  22. color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>"
  23. color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
  24. color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
  25. color brightblue "prepall(docs|info|man|strip)?" "prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)"
  26. color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>"
  27. ## Highlight common commands used in ebuilds
  28. color blue "\<make\>" "\<(awk|cat|cd|chmod|chown|cp|echo|env|export|find|e?grep|ln|mkdir|mv|rm|sed|set|tar|touch|unset|xargs)\>"
  29. ## Highlight comments (doesnt work that well)
  30. color yellow "(^|[[:space:]])#.*$"
  31. ## Highlight strings (doesnt work that well)
  32. color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
  33. ## Trailing space is bad!
  34. color ,green "[[:space:]]+$"
  35.  
  36. ## Here is an example for Portage control files
  37. ##
  38. syntax "/etc/portage" "\.(keywords|mask|unmask|use)(/.+)?$"
  39. ## Base text:
  40. color green "^.+$"
  41. ## Use flags:
  42. color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+"
  43. color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+"
  44. ## Likely version and slot numbers:
  45. color magenta "-[[:digit:]].*([[:space:]]|$)"
  46. color magenta ":[^[:space:]]+([[:space:]]|$)"
  47. ## Accepted arches:
  48. color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc(-fbsd)?|x86(-fbsd)?)\>"
  49. color white "[[:space:]][*~-]?\*"
  50. ## Categories:
  51. color cyan "^[[:space:]]*.*/"
  52. ## Masking regulators:
  53. color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
  54. ## Comments:
  55. color yellow "#.*$"
  56.